//头部和左侧菜单
$siderw:190px;
$headh:50px;
.sider{
  width:$siderw;
  height: 100%;
  background-color:#313a43;
  position: absolute;
  left:0;
  top:0;
  bottom:0;
  z-index: 99;
  overflow-y: auto;
  overflow-x: hidden;
  .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected{
    background-color: $blue;
    a{
      color:#fff;
    }
  }
  .ant-menu{
    background:none;
    width: $siderw;
    border:none;
    .just-one{
      font-size: 16px;
      color:$grey;
      .MyIcon {
        margin-right: 8px;
      }
    }
    .ant-menu-submenu {
      .ant-menu-submenu-title {
        color:$grey;
        line-height: 55px;
        height: 55px;
        span, .MyIcon {
          font-size: 16px;
        }
        .MyIcon {
          font-size: 16px;
          margin-right: 8px;
        }
        &:after {
          right: 8px;
          color:$grey;
        }
      }
    }
    //二级菜单
    .ant-menu-submenu-vertical > .ant-menu{
      min-width: $siderw + 20px;
      .ant-menu-submenu-title{
        line-height: 42px;
        height: 42px;
        font-size: 14px;
        color:#777;
        &:after{
          color:$grey;
        }
      }
      .ant-menu-submenu-vertical > .ant-menu{
        .ant-menu-submenu-title{
          font-size: 14px;
        }
      }
    }
    .ant-menu-vertical.ant-menu-sub .ant-menu-item{
      font-size: 14px;
    }
  }
  .sider-title-span {
    line-height: 1.4;
    text-align: center;
    display: block;
    width: 60px;
    .MyIcon{
      margin-top: 4px;
      display: block;
    }
    .name {
      display: block;
      font-size: 14px;
    }
    &.active{
      background:$blue;
    }
  }
  .sider-one{
    font-size: 14px;
    .MyIcon{
      margin-right: 8px;
      font-size: 16px;
    }
  }
  .ant-menu-submenu-title{
    height: 42px !important;
    line-height: 42px !important;
    color:rgba(255, 255, 255, 0.67) !important;
  }
  .ant-menu-submenu .ant-menu-submenu-title span, .sider .ant-menu .ant-menu-submenu .ant-menu-submenu-title .MyIcon{
    font-size: 14px !important;
  }

}

.sider-flod{
  width:$siderw;
  height: 100%;
  background-color:#313a43;
  position: absolute;
  left:0;
  top:0;
  bottom:0;
  z-index: 99;
  overflow-y: auto;
  overflow-x: hidden;
  .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected{
    background-color: $blue;
    a{
      color:#fff;
    }
  }
  .ant-menu{
    background:none;
    width: $siderw;
    border:none;
    .just-one{
      font-size: 16px;
      color:$grey;
      .MyIcon {
        margin-right: 8px;
      }
    }
    .ant-menu-submenu {
      .ant-menu-submenu-title {
        color:$grey;
        line-height: 55px;
        height: 55px;
        span, .MyIcon {
          font-size: 16px;
        }
        .MyIcon {
          font-size: 16px;
          margin-right: 8px;
        }
        &:after {
          right: 8px;
          color:$grey;
        }
      }
    }
    //二级菜单
    .ant-menu-submenu-vertical > .ant-menu{
      min-width: $siderw + 20px;
      .ant-menu-submenu-title{
        line-height: 42px;
        height: 42px;
        font-size: 14px;
        color:#777;
        &:after{
          color:$grey;
        }
      }
      .ant-menu-submenu-vertical > .ant-menu{
        .ant-menu-submenu-title{
          font-size: 14px;
        }
      }
    }
    .ant-menu-vertical.ant-menu-sub .ant-menu-item{
      font-size: 14px;
    }
  }
  .sider-title-span {
    line-height: 1.4;
    text-align: center;
    display: block;
    width: 60px;
    .MyIcon{
      margin-top: 4px;
      display: block;
    }
    .name {
      display: block;
      font-size: 14px;
    }
    &.active{
      background:$blue;
    }
  }
  .sider-one{
    font-size: 14px;
    .MyIcon{
      margin-right: 8px;
      font-size: 16px;
    }
  }
  .ant-menu-submenu-title{
    height: 42px !important;
    line-height: 42px !important;
    color:rgba(255, 255, 255, 0.67) !important;
  }
  .ant-menu-submenu .ant-menu-submenu-title span, .sider .ant-menu .ant-menu-submenu .ant-menu-submenu-title .MyIcon{
    font-size: 14px !important;
  }

}

.head{
  background-color:#f6f6f6;
  height: $headh;
  margin-top: -50px;
  @include clearfix;
  border-bottom: 1px solid $borderColor;
  .head-logo{
    width:$siderw;
    @include hei($headh);
    text-align: center;
    background: #313a43;
    float: left;
    display: flex;
    justify-content: center;
    align-items: center;
    .MyIcon{
      font-size: 40px;
      color:#fff;
      display: inline-block;
      margin-top: 5px;
    }
  }
  .head-nav{
    float: right;
    margin-right: 20px;
    font-size: 14px;
    .ant-menu{
      line-height: 48px;
      background-color:#f6f6f6;
      border-bottom-color: $borderColor;
      .ant-menu-submenu-title{
        .MyIcon {
          margin-right: 5px;
          &.dian{
            margin-right: 0;
            position: absolute;
            top:6px;
            left:26px;
            line-height: normal;
            color:$red;
            font-size: 18px;
          }
        }
      }
      .ant-menu-item{
        font-size: 14px;
        .MyIcon{
          margin-right: 5px;
        }
      }
      .ant-menu-submenu{
        &:hover{
          background: #fff;
        }
        &:first-child{
          .ant-menu{
            left:auto;
            right:0;
          }
        }
      }
      .ant-menu{
        background: #fff;
      }
    }
    .ant-tabs-nav{
      .ant-tabs-tab{
        padding: 15px 30px;
        &:last-child{
          margin-right: 0;
        }
      }
    }
    .ant-tabs-tabpane{
      line-height: normal;
    }
    .remind-cont{
      max-height: 300px;
      overflow-y: auto;
      padding-top: 10px;
    }
    .remind{
      margin-bottom: 10px;
      border-bottom: 1px solid $borderColor;
      padding-bottom: 10px;
      font-size: 12px;
      min-width: 300px;
      line-height: normal;
      a{
        line-height: 1.4;
        color:#666;
        &:hover,&:active{
          color:$blue;
        }
      }
      .span-state{
        width: 34px;
        height: 34px;
        line-height: 34px;
        display: inline-block;
        text-align: center;
        @include border-radius(100%);
        color:#fff;
        font-size: 12px;
        margin-left: 10px;
        margin-right: 10px;
      }
      p.time{
        color:$grey;
        margin-top: 5px;
      }
    }
    .remind-notice{
      padding:0 10px;
    }
    .remind-foot{
      @include clearfix;
      padding:0 10px 10px;
      line-height: 20px;
      .remind-more {
        float: right;
        color:#666;
        font-size: 12px;
        .more {
          margin-left: 5px;
        }
        &:hover{
          color:$blue;
        }
      }
      .MyIcon.source{
        color:$blue;
      }
      .MyIcon.source-no{
        color:$grey_darken;
      }
    }
  }
  .head-max-height{
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    .ant-menu-item{
      padding-left: 16px;
    }
    a{
      display: block;
    }
  }
}

.head-flod{
  background-color:#f6f6f6;
  height: $headh;
  margin-top: -50px;
  @include clearfix;
  border-bottom: 1px solid $borderColor;
  .head-logo{
    width:$siderw;
    @include hei($headh);
    text-align: center;
    background: #313a43;
    float: left;
    display: flex;
    justify-content: center;
    align-items: center;
    .MyIcon{
      font-size: 40px;
      color:#fff;
      display: inline-block;
      margin-top: 5px;
    }
  }
  .head-nav{
    float: right;
    margin-right: 20px;
    font-size: 14px;
    .ant-menu{
      line-height: 48px;
      background-color:#f6f6f6;
      border-bottom-color: $borderColor;
      .ant-menu-submenu-title{
        .MyIcon {
          margin-right: 5px;
          &.dian{
            margin-right: 0;
            position: absolute;
            top:6px;
            left:26px;
            line-height: normal;
            color:$red;
            font-size: 18px;
          }
        }
      }
      .ant-menu-item{
        font-size: 14px;
        .MyIcon{
          margin-right: 5px;
        }
      }
      .ant-menu-submenu{
        &:hover{
          background: #fff;
        }
        &:first-child{
          .ant-menu{
            left:auto;
            right:0;
          }
        }
      }
      .ant-menu{
        background: #fff;
      }
    }
    .ant-tabs-nav{
      .ant-tabs-tab{
        padding: 15px 30px;
        &:last-child{
          margin-right: 0;
        }
      }
    }
    .ant-tabs-tabpane{
      line-height: normal;
    }
    .remind-cont{
      max-height: 300px;
      overflow-y: auto;
      padding-top: 10px;
    }
    .remind{
      margin-bottom: 10px;
      border-bottom: 1px solid $borderColor;
      padding-bottom: 10px;
      font-size: 12px;
      min-width: 300px;
      line-height: normal;
      a{
        line-height: 1.4;
        color:#666;
        &:hover,&:active{
          color:$blue;
        }
      }
      .span-state{
        width: 34px;
        height: 34px;
        line-height: 34px;
        display: inline-block;
        text-align: center;
        @include border-radius(100%);
        color:#fff;
        font-size: 12px;
        margin-left: 10px;
        margin-right: 10px;
      }
      p.time{
        color:$grey;
        margin-top: 5px;
      }
    }
    .remind-notice{
      padding:0 10px;
    }
    .remind-foot{
      @include clearfix;
      padding:0 10px 10px;
      line-height: 20px;
      .remind-more {
        float: right;
        color:#666;
        font-size: 12px;
        .more {
          margin-left: 5px;
        }
        &:hover{
          color:$blue;
        }
      }
      .MyIcon.source{
        color:$blue;
      }
      .MyIcon.source-no{
        color:$grey_darken;
      }
    }
  }
  .head-max-height{
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    .ant-menu-item{
      padding-left: 16px;
    }
    a{
      display: block;
    }
  }
}

.main {
  width: 100%;
  height: 100%;
  position: absolute;
  top:0;
  bottom:0;
  left:0;
  right: 0;
  .rightWarp {
    position: absolute;
    left:0;
    top:$headh;
    bottom:0;
    right:0;
    .right-box {
      position: absolute;
      top: 0;
      overflow-y: auto;
      bottom: 0;
      right: 0;
      left:$siderw;
      //min-width: 1280px - $siderw;
      min-width: 800px;
    }
  }
}